package com.zheng.oss.common.constant;

import com.zheng.common.base.BaseConstants;
import com.zheng.common.util.PropertiesFileUtil;

/**
 * oss系统常量类
 * Created by shuzheng on 2017/4/18.
 */
public class OssConstant extends BaseConstants {

	// endpoint
	public static final String OSS_ENDPOINT = PropertiesFileUtil.getInstance("config").get("oss.endpoint");

	// bucketName
	public static final String OSS_BUCKET_NAME = PropertiesFileUtil.getInstance("config").get("oss.bucketName");

	// domainOfBucket
	public static final String OSS_DOMAINOfBUCKET = PropertiesFileUtil.getInstance("config").get("oss.domainOfBucket");

	// 文件大小
	public static final int OSS_MAX_SIZE = PropertiesFileUtil.getInstance("config").getInt("oss.maxSize");

	// 签名有效期(单位:分钟)
	public static final int OSS_EXPIRE = PropertiesFileUtil.getInstance("config").getInt("oss.policy.expire");

	// callbackUrl
	public static final String OSS_CALLBACK = PropertiesFileUtil.getInstance("config").get("oss.callback");

}
